@model OurWedding1.Models.ConfirmationKey

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>ConfirmationKey</legend>

    <div class="display-label">Key</div>
    <div class="display-field">@Model.Key</div>

    <div class="display-label">isReleased</div>
    <div class="display-field">@Model.isReleased</div>

    <div class="display-label">ConfirmationDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.ConfirmationDate)</div>

    <div class="display-label">isConfirmed</div>
    <div class="display-field">@Model.isConfirmed</div>

    <div class="display-label">GuestGroup</div>
    <div class="display-field">@(Model.GuestGroup == null ? "None" : Model.GuestGroup.Name)</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


